package cn.com.bsoft.cloud

import cn.net.xyan.blossom.kotlin.AllOpen
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.boot.web.support.SpringBootServletInitializer

@AllOpen
@SpringBootApplication
class CloudOfficeApplications

fun main(args: Array<String>) {
    SpringApplication.run(CloudOfficeApplications::class.java, *args)
}

class ServletInitializer : SpringBootServletInitializer() {

    override fun configure(application: SpringApplicationBuilder) : SpringApplicationBuilder =
            application.sources(CloudOfficeApplications::class.java)

}